import axios from '@/axios'

export function getImage (id,page=1){
    return axios.get(`/admin/image_class/${id}/image/${page}?limit=8`)
}
export function setImageName (id,name){
    console.log(name);
    return axios.post(`/admin/image/${id}`,{name})
}
export function deleteImage (ids){
    return axios.post(`/admin/image/delete_all`,{ids})
}
export const uploadUrl ='/api/admin/image/upload'